package cn.bdqn.mh.service.impl;

import cn.bdqn.mh.mapper.CategoryMapper;
import cn.bdqn.mh.pojo.Category;
import cn.bdqn.mh.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 创建人:  zhang
 * 创建日期: 2020/7/20 13:58
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryMapper categoryMapper;
    @Override
    public List<Category> findAll() {
        return categoryMapper.getList();
    }
}
